package com.lifo.good.service;

import com.github.pagehelper.PageInfo;
import com.lifo.good.bean.model.HfGoods;

import java.util.List;

/**
 *
 * @author Administrator
 * @date 2018/5/2 0002
 */
public interface SearchGoodsService {

    PageInfo<HfGoods> searchHfGoodsByPage(int currentPage, int pageSize );
    /**
     * 根据hfUid主键查询单个商品信息
     * @param hfUid 主键
     * @return
     */
    HfGoods searchHfGoodsByHfUid(Integer hfUid);

    /**
     * 获取未匹配商品信息
     * @param startIndex
     * @param endIndex
     * @return
     */
    List<HfGoods> searchNoMatchGoodsByPage( int startIndex, int endIndex);

    /**
     * 获取未匹配的商品数量
     * @return
     */
    Integer searchNoMatchGoodsCount();

    /**
     * 修改商品类目id
     * @param hfGoods
     */
    void updateHfGoodsCategoryId(HfGoods hfGoods);

    /**
     * 通过类目i的查找商品
     * @param categoryId
     * @return
     */
    PageInfo<HfGoods> searchHfGoodsByCategory (Long categoryId ,Integer currentPage, Integer pageSize );

    List<HfGoods> searchShowcaseGood(int shopId,int randomRow);
}
